package design_pattern.strategy;

public class CarContext {

    private final CarStrategy carStrategy;

    public CarContext(CarStrategy carStrategy) {
        this.carStrategy = carStrategy;
    }

    public String buyCar() {
        return carStrategy.buyCar();
    }

}
